import { createSSRApp } from 'vue';
import App from './App.vue';
import { createPinia } from 'pinia';

/*每个页面公共css */
import './styles/index.scss';

// 工具库
import lodash from 'lodash';

// uView Plus配置
import uviewPlus from 'uview-plus'
import 'uview-plus/index.scss'

export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();
  
  app.use(pinia);
  app.use(uviewPlus);
  app.config.globalProperties.$lodash = lodash;
  
  return {
    app,
    pinia: pinia,
  };
} 